
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>目录结构 · ZanProxy</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="architecture.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../quick-start/">
            
                <a href="../../quick-start/">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../quick-start/pre-install.html">
            
                <a href="../../quick-start/pre-install.html">
            
                    
                    前置条件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../quick-start/install.html">
            
                <a href="../../quick-start/install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../quick-start/launch.html">
            
                <a href="../../quick-start/launch.html">
            
                    
                    启动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../quick-start/cert.html">
            
                <a href="../../quick-start/cert.html">
            
                    
                    证书安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../configure/">
            
                <a href="../../configure/">
            
                    
                    代理配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../configure/host.html">
            
                <a href="../../configure/host.html">
            
                    
                    Host管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../configure/rule.html">
            
                <a href="../../configure/rule.html">
            
                    
                    转发规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../configure/project.html">
            
                <a href="../../configure/project.html">
            
                    
                    工程路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../configure/mock.html">
            
                <a href="../../configure/mock.html">
            
                    
                    mock数据
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../usage/">
            
                <a href="../../usage/">
            
                    
                    使用代理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../usage/chrome.html">
            
                <a href="../../usage/chrome.html">
            
                    
                    chrome代理配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../usage/mobile.html">
            
                <a href="../../usage/mobile.html">
            
                    
                    手机代理设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../usage/enable.html">
            
                <a href="../../usage/enable.html">
            
                    
                    规则启用/禁用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../usage/monitor.html">
            
                <a href="../../usage/monitor.html">
            
                    
                    请求监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../plugin/">
            
                <a href="../../plugin/">
            
                    
                    自定义插件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../plugin/code.html">
            
                <a href="../../plugin/code.html">
            
                    
                    编写插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../plugin/usage.html">
            
                <a href="../../plugin/usage.html">
            
                    
                    使用插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../">
            
                <a href="../">
            
                    
                    Mac 客户端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../use.html">
            
                <a href="../use.html">
            
                    
                    使用方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="./">
            
                <a href="./">
            
                    
                    插件开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.6.2.1" data-path="directory.html">
            
                <a href="directory.html">
            
                    
                    目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="architecture.html">
            
                <a href="architecture.html">
            
                    
                    项目架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="type-system.html">
            
                <a href="type-system.html">
            
                    
                    类型系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" >
            
                <span>
            
                    
                    插件开发指南
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.4.1" data-path="plugin-guide/start.html">
            
                <a href="plugin-guide/start.html">
            
                    
                    新建插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4.2" data-path="plugin-guide/manager.html">
            
                <a href="plugin-guide/manager.html">
            
                    
                    Manager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4.3" data-path="plugin-guide/renderer.html">
            
                <a href="plugin-guide/renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.2.5" >
            
                <span>
            
                    
                    API参考
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.5.1" data-path="api/main.html">
            
                <a href="api/main.html">
            
                    
                    Main
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.5.2" data-path="api/renderer.html">
            
                <a href="api/renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../cooperation/">
            
                <a href="../../cooperation/">
            
                    
                    团队协作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../cooperation/remoteRule.html">
            
                <a href="../../cooperation/remoteRule.html">
            
                    
                    远程规则
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >目录结构</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x76EE;&#x5F55;&#x7ED3;&#x6784;">&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h2>
<p>&#x672C;&#x6587;&#x6863;&#x53EA;&#x4ECB;&#x7ECD;&#x90E8;&#x5206;&#x5BF9;&#x63D2;&#x4EF6;&#x5F00;&#x53D1;&#x8005;&#x6765;&#x8BF4;&#x9700;&#x8981;&#x4E86;&#x89E3;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x53CA;&#x76F8;&#x5173;&#x6587;&#x4EF6;&#x3002;</p>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;&#x4E0D;&#x63A8;&#x8350;&#x5F00;&#x53D1;&#x8005;&#x5BF9; <code>src/gui</code> &#x76EE;&#x5F55;&#x4E2D; <code>config.ts</code> &#x548C; <code>plugins</code> &#x4EE5;&#x5916;&#x7684;&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#xFF0C;&#x53EF;&#x80FD;&#x4F1A;&#x5728;&#x540E;&#x7EED;&#x5408;&#x5E76;&#x4EE3;&#x7801;&#x65F6;&#x4EA7;&#x751F;&#x51B2;&#x7A81;&#x3002;</strong></p>
<pre><code class="lang-shell">root
&#x251C;&#x2500;&#x2500; package.json
&#x251C;&#x2500;&#x2500; icons             # &#x56FE;&#x6807;&#x6587;&#x6587;&#x4EF6;&#x5939;
&#x251C;&#x2500;&#x2500; resources         # extraResources &#x5916;&#x90E8;&#x8D44;&#x6E90;&#x6587;&#x4EF6;&#x5939;
&#x251C;&#x2500;&#x2500; src/gui
&#x2502;   &#x251C;&#x2500;&#x2500; config.ts     # &#x914D;&#x7F6E;&#x6587;&#x4EF6;
&#x2502;   &#x251C;&#x2500;&#x2500; global.d.ts   # &#x5168;&#x5C40;&#x7C7B;&#x578B;&#x58F0;&#x660E;
&#x2502;   &#x251C;&#x2500;&#x2500; common        # main&#x8FDB;&#x7A0B;&#x4E0E;renderer&#x8FDB;&#x7A0B;&#x516C;&#x7528;&#x6587;&#x4EF6;&#x76EE;&#x5F55;
&#x2502;   &#x251C;&#x2500;&#x2500; main          # main &#x8FDB;&#x7A0B;&#x76EE;&#x5F55;
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; core
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; managers  # &#x5185;&#x7F6E; Manager
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; dev.ts    # main &#x8FDB;&#x7A0B;&#x5F00;&#x53D1;&#x6A21;&#x5F0F;&#x989D;&#x5916;&#x52A0;&#x8F7D;&#x7684;&#x6587;&#x4EF6;
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; index.ts  # main &#x8FDB;&#x7A0B;&#x5165;&#x53E3;&#x6587;&#x4EF6;
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; main.ts
&#x2502;   &#x2502;   &#x2514;&#x2500;&#x2500; utils     # main &#x8FDB;&#x7A0B;&#x5DE5;&#x5177;&#x51FD;&#x6570;&#x76EE;&#x5F55;
&#x2502;   &#x251C;&#x2500;&#x2500; renderer      # renderer &#x8FDB;&#x7A0B;&#x76EE;&#x5F55;
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; api
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; components
&#x2502;   &#x2502;   &#x251C;&#x2500;&#x2500; store     # renderer &#x8FDB;&#x7A0B; mobx store &#x76EE;&#x5F55;
&#x2502;   &#x2502;   &#x2514;&#x2500;&#x2500; utils     # renderer &#x8FDB;&#x7A0B;&#x5DE5;&#x5177;&#x51FD;&#x6570;&#x76EE;&#x5F55;
&#x2502;   &#x251C;&#x2500;&#x2500; plugins       # &#x81EA;&#x5B9A;&#x4E49;&#x63D2;&#x4EF6;&#x76EE;&#x5F55;
&#x2502;   &#x2514;&#x2500;&#x2500; types         # &#x516C;&#x5171;&#x7C7B;&#x578B;&#x76EE;&#x5F55;
&#x251C;&#x2500;&#x2500; static            # &#x9759;&#x6001;&#x8D44;&#x6E90;&#x76EE;&#x5F55;
&#x251C;&#x2500;&#x2500; dist
&#x2514;&#x2500;&#x2500; build
</code></pre>
<h4 id="srcguiconfigts">src/gui/config.ts</h4>
<p>&#x7EDF;&#x4E00;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5BFC;&#x51FA;&#x7684;&#x5BF9;&#x8C61;&#x4F1A;&#x88AB; <code>src/main/main.ts</code> &#x6587;&#x4EF6;&#x4F7F;&#x7528;&#xFF0C;&#x7528;&#x4E8E;&#x521D;&#x59CB;&#x5316;&#x5E94;&#x7528;&#x3002;</p>
<p>&#x53EF;&#x5BFC;&#x51FA;&#x7684;&#x5BF9;&#x8C61;&#x6709;&#xFF1A;</p>
<ul>
<li>plugins: <code>string[]</code> &#x2014;&#x2014; &#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x65F6;&#x9700;&#x8981;&#x52A0;&#x8F7D;&#x7684;&#x63D2;&#x4EF6;&#x7684;&#x6839;&#x76EE;&#x5F55;&#x6570;&#x7EC4;</li>
</ul>
<h4 id="srcguiglobaldts">src/gui/global.d.ts</h4>
<p>&#x58F0;&#x660E;&#x5404;&#x79CD;&#x5168;&#x5C40;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x5305;&#x62EC;&#x901A;&#x7528;&#x7C7B;&#x578B;&#x3001; main &#x8FDB;&#x7A0B; global &#x6269;&#x5C55;&#x7C7B;&#x578B;&#x548C; renderer &#x8FDB;&#x7A0B; window &#x6269;&#x5C55;&#x7C7B;&#x578B;</p>
<h4 id="srcguicommon">src/gui/common</h4>
<p>main &#x8FDB;&#x7A0B;&#x548C; renderer &#x8FDB;&#x7A0B;&#x516C;&#x5171;&#x76EE;&#x5F55;&#xFF0C;&#x4E00;&#x822C;&#x5B58;&#x653E;&#x4E00;&#x4E9B;&#x516C;&#x5171;&#x6570;&#x636E;&#xFF08;&#x5982;&#x516C;&#x5171;&#x5E38;&#x91CF;&#x3001;&#x901A;&#x8BAF;&#x4FE1;&#x9053;&#x540D;&#x79F0;&#x7B49;&#xFF09;</p>
<h4 id="srcguitypes">src/gui/types</h4>
<p>main &#x8FDB;&#x7A0B;&#x548C; renderer &#x8FDB;&#x7A0B;&#x7684;&#x7C7B;&#x578B;&#x6587;&#x4EF6;&#xFF0C;&#x8BE5;&#x76EE;&#x5F55;&#x7684;&#x6240;&#x6709;&#x7C7B;&#x578B;&#x90FD;&#x5728; <code>ZanProxyMac</code> &#x8FD9;&#x4E2A;&#x547D;&#x540D;&#x7A7A;&#x95F4;&#x4E0B;</p>
<h4 id="srcguimain">src/gui/main</h4>
<p>&#x8BE5;&#x76EE;&#x5F55;&#x4E3A; electron main &#x8FDB;&#x7A0B;&#x76EE;&#x5F55;&#xFF0C;&#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x6709;&#xFF1A;</p>
<ol>
<li><p><code>index.ts</code>: &#x5165;&#x53E3;&#x6587;&#x4EF6;&#xFF0C;<code>index.ts</code> &#x4F1A;&#x6839;&#x636E;&#x8FD0;&#x884C;&#x73AF;&#x5883;&#x8BA1;&#x7B97;&#x58F0;&#x660E;&#x4E00;&#x4E9B;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x7136;&#x540E;&#x52A0;&#x8F7D; <code>main.ts</code> &#x6587;&#x4EF6;&#xFF0C;&#x82E5;&#x5904;&#x4E8E;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#xFF0C;&#x5219;&#x5728;&#x52A0;&#x8F7D; <code>main.ts</code> &#x4E4B;&#x524D;&#xFF0C;&#x8FD8;&#x4F1A;&#x52A0;&#x8F7D; <code>dev.ts</code>.</p>
</li>
<li><p><code>dev.ts</code>: &#x5F00;&#x53D1;&#x73AF;&#x5883;&#x989D;&#x5916;&#x52A0;&#x8F7D;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x7528;&#x6765;&#x5F15;&#x5165;&#x4E00;&#x4E9B;&#x5F00;&#x53D1;&#x6A21;&#x5F0F;&#x9700;&#x8981;&#x989D;&#x5916;&#x52A0;&#x8F7D;&#x7684;&#x7B2C;&#x4E09;&#x65B9;&#x5E93;&#xFF08;&#x4F8B;&#x5982;&#x5404;&#x79CD;devtool&#xFF09;</p>
</li>
<li><p><code>main.ts</code>: &#x5B9E;&#x9645;&#x7684;&#x5E94;&#x7528;&#x542F;&#x52A8;&#x5165;&#x53E3;&#xFF0C;&#x8C03;&#x7528;&#x5E94;&#x7528;&#x7684;&#x52A0;&#x8F7D;&#x63D2;&#x4EF6;&#x548C;&#x521D;&#x59CB;&#x5316;&#x65B9;&#x6CD5;</p>
</li>
<li><p><code>core</code>: &#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x4E86; main &#x8FDB;&#x7A0B;&#x6267;&#x884C;&#x7684;&#x6838;&#x5FC3;&#x6A21;&#x5757;&#x6587;&#x4EF6;&#xFF0C;&#x5177;&#x4F53;&#x5185;&#x5BB9;&#x8BF7;&#x53C2;&#x8003;<a href="api/main.html#core">API&#x6587;&#x6863;</a></p>
</li>
<li><p><code>managers</code>: &#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x4E86; zan-proxy-mac &#x5185;&#x7F6E;&#x7684; manager &#x53CA;&#x76F8;&#x5173;&#x7684;&#x5B9A;&#x4E49;</p>
</li>
<li><p><code>utils</code>: &#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x4E86; main &#x8FDB;&#x7A0B;&#x4E2D;&#x7684;&#x5DE5;&#x5177;&#x51FD;&#x6570;&#xFF0C;&#x5177;&#x4F53;&#x5185;&#x5BB9;&#x8BF7;&#x53C2;&#x8003;<a href="api/main.html#utils">API&#x6587;&#x6863;</a></p>
</li>
</ol>
<h4 id="srcguirenderer">src/gui/renderer</h4>
<p>electron &#x6E32;&#x67D3;&#x8FDB;&#x7A0B;&#xFF0C;webpack &#x6253;&#x5305;&#x540E;&#x751F;&#x6210; vendor.js &#x548C; renderer.js &#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#xFF08;&#x4E0D;&#x5305;&#x62EC;&#x63D2;&#x4EF6;&#x7684; renderer &#x8FDB;&#x7A0B;&#x4EE3;&#x7801;&#xFF09;</p>
<ol>
<li><p><code>main.tsx</code>: &#x6253;&#x5305;&#x5165;&#x53E3;&#x6587;&#x4EF6;</p>
</li>
<li><p><code>store</code>: &#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x4E86; renderer &#x8FDB;&#x7A0B;&#x4E2D;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x5E93; mobx &#x7684;&#x6240;&#x6709; store&#xFF0C;&#x5177;&#x4F53;&#x5185;&#x5BB9;&#x8BF7;&#x53C2;&#x8003;<a href="api/renderer.html#store">API&#x6587;&#x6863;</a></p>
</li>
<li><p><code>utils</code>: &#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x4E86; renderer &#x8FDB;&#x7A0B;&#x4E2D;&#x7684;&#x5DE5;&#x5177;&#x51FD;&#x6570;&#xFF0C;&#x5177;&#x4F53;&#x5185;&#x5BB9;&#x8BF7;&#x53C2;&#x8003;<a href="api/renderer.html#utils">API&#x6587;&#x6863;</a></p>
</li>
</ol>
<h4 id="static">static</h4>
<p>&#x9759;&#x6001;&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#xFF0C;&#x8BE5;&#x76EE;&#x5F55;&#x4F1A;&#x5728;&#x6253;&#x5305;&#x65F6;&#x88AB;&#x6253;&#x5305;&#x8FDB; asar &#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x56E0;&#x6B64;&#x4F60;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5168;&#x5C40;&#x53D8;&#x91CF; <code>global.__static</code>&#xFF08;main &#x8FDB;&#x7A0B;&#xFF09;&#x6216; <code>window.__static</code>&#xFF08;renderer &#x8FDB;&#x7A0B;&#xFF09;&#x6765;&#x8BBF;&#x95EE;&#x8BE5;&#x76EE;&#x5F55;</p>
<h4 id="resources">resources</h4>
<p>&#x5916;&#x90E8;&#x8D44;&#x6E90;&#x76EE;&#x5F55;&#xFF0C;&#x8BE5;&#x76EE;&#x5F55;&#x4E0D;&#x4F1A;&#x5728;&#x6253;&#x5305;&#x65F6;&#x88AB;&#x6253;&#x5305;&#x8FDB; asar &#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; <code>global.__resource</code> &#x6765;&#x8BBF;&#x95EE;</p>
<h4 id="dist">dist</h4>
<p>&#x5B58;&#x653E;&#x4EE3;&#x7801;&#x6253;&#x5305;&#x540E;&#x8F93;&#x51FA;&#x6587;&#x4EF6;&#x7684;&#x76EE;&#x5F55;</p>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong> &#x5F00;&#x53D1;&#x6A21;&#x5F0F;&#x4E0B;&#x53EA;&#x4F1A;&#x5C06; main &#x8FDB;&#x7A0B;&#x76F8;&#x5173;&#x4EE3;&#x7801;&#x8F93;&#x51FA;&#x5230;&#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x800C; renderer &#x8FDB;&#x7A0B;&#x7684;&#x4EE3;&#x7801;&#x4F1A;&#x5B58;&#x653E;&#x5728; webpack-dev-server &#x4E2D;</p>
<h4 id="build">build</h4>
<p>&#x5B58;&#x653E; electron-builder &#x6253;&#x5305;&#x540E;&#x7ED3;&#x679C;&#x6587;&#x4EF6;&#x7684;&#x76EE;&#x5F55;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 插件开发">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="architecture.html" class="navigation navigation-next " aria-label="Next page: 项目架构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"目录结构","level":"1.6.2.1","depth":3,"next":{"title":"项目架构","level":"1.6.2.2","depth":3,"path":"gui/plugin/architecture.md","ref":"gui/plugin/architecture.md","articles":[]},"previous":{"title":"插件开发","level":"1.6.2","depth":2,"path":"gui/plugin/index.md","ref":"gui/plugin/index.md","articles":[{"title":"目录结构","level":"1.6.2.1","depth":3,"path":"gui/plugin/directory.md","ref":"gui/plugin/directory.md","articles":[]},{"title":"项目架构","level":"1.6.2.2","depth":3,"path":"gui/plugin/architecture.md","ref":"gui/plugin/architecture.md","articles":[]},{"title":"类型系统","level":"1.6.2.3","depth":3,"path":"gui/plugin/type-system.md","ref":"gui/plugin/type-system.md","articles":[]},{"title":"插件开发指南","level":"1.6.2.4","depth":3,"ref":"","articles":[{"title":"新建插件","level":"1.6.2.4.1","depth":4,"path":"gui/plugin/plugin-guide/start.md","ref":"gui/plugin/plugin-guide/start.md","articles":[]},{"title":"Manager","level":"1.6.2.4.2","depth":4,"path":"gui/plugin/plugin-guide/manager.md","ref":"gui/plugin/plugin-guide/manager.md","articles":[]},{"title":"Renderer","level":"1.6.2.4.3","depth":4,"path":"gui/plugin/plugin-guide/renderer.md","ref":"gui/plugin/plugin-guide/renderer.md","articles":[]}]},{"title":"API参考","level":"1.6.2.5","depth":3,"ref":"","articles":[{"title":"Main","level":"1.6.2.5.1","depth":4,"path":"gui/plugin/api/main.md","ref":"gui/plugin/api/main.md","articles":[]},{"title":"Renderer","level":"1.6.2.5.2","depth":4,"path":"gui/plugin/api/renderer.md","ref":"gui/plugin/api/renderer.md","articles":[]}]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":[]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"ZanProxy","links":{"gitbook":false,"sharing":{"google":false,"facebook":false,"twitter":false,"all":false}},"gitbook":"*"},"file":{"path":"gui/plugin/directory.md","mtime":"2019-03-08T06:06:12.814Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-03-08T06:08:21.743Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

